adjust overrideconfiguration for dependency injection