implement emitter script