change construct to be able to use it with a Dependency Injection Container