replaced lodash with prodash and updated emitter code to use some helper functions