use events.EventEmitter

use events.EventEmitter