added debug print function for packet_object