added retransmission of lost messages