more convenient api of msgpack