implement leaf traversal, fix confusion of dependencies with goals