moved the dependency registering to a better place