add convert to protobuf script