get all the tree info, but need to deal with the stack to build the
correct tree structure