refactor adding dependencyManager