userutil combines userEmit code between server/client