exporting event emitter