moved protobuf serializer