WIP: resolveDependencies by nesting levels and trying to crawl back
a new approach to resolving dependencies that works very well
somewhat redundant tests for the run wrapper around resolveDependencies