implement eventEmitter pattern on vertices