introduce treePathTraverser(tree)