add check needed to wait all the ACK messages before sending the DONE message