support bson, msgpack