fixed loading of dependencies