add emitter in component def