got the tree entry stuff right