removing recursion from circular dependency debugger