call the event emitter constructor