used to simulate packet loss