write protobuf into the path with other files