add some utility functions to packet-class