added msgpack encoding support