some more work on dependency resolution