looks like I'm not generating cyclic references
index now returns depth and entire subtree