fixed emitter for lame npm upgrade