change msg from thrift format to protobuf