fix to use delimited for protobuf serialization