implement functions for packing/unpacking binary messages