makes phant an event emitter