renamed app variable to emitter in app