keeps losing txs, fixed retrying code