add event emitter as dependency