custom event emitter beta-0.8