resolve dependency injection conflict