added registerDependency