ensuring the correct order of the dependency resolution