working on compatibility with nested dependencies