fixed the eventEmitter file loading