calls the exposed function on "deeper" path, appending the tree