added corruption and packet dropping options