receive ack code debugging