autodiscovery of subdependencies working