add temporary relations debug code