added event store dependency injection