change interface to send from event emitter to function
fix racing condition on new node join