merged EmitterAgent into Agent
log and error labels should not cause infinite loop