don't toy with the paths, join them properly
don't toy with the tree metadata, build it