progress on msgpack encoding of packets

very uncertain