set dependencies on the constructor instead of passing the container