utils of msgpack protocol