add EventEmitter apis required by spec