fix error emitting, ack option