get dependency injection working properly