msgpack relating utils.