make emitter a class