deal with the packets