added retransmit, read from config file