     }
     if(final){
       if(Update.end(true)){
-        Serial.printf("Update Success: %uB\n", index+len);
+		if(debug) Serial.printf("Update Success: %uB\n", index+len);
       } else {
-        Update.printError(Serial);
+		if(debug) Update.printError(Serial);
       }
     }
   });
   
-
   server.begin();
   
-  Serial.println("started");
+  if(debug) Serial.println("started");
 }
 
 void sendBuffer(){

    request->send(response);
  },[](AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final){
    if(!index){
      Serial.printf("Update Start: %s\n", filename.c_str());
      Update.runAsync(true);
      if(!Update.begin((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000)){
        Update.printError(Serial);
      }
    }
    if(!Update.hasError()){

      script.close();
    }
  }

}
