added eventEmitter to Schema