rebuilt standalone to remove emitter error