prepare for bad network.