     }
     HTTPresponse += formattedTime( localTime() ) + F( "," );
     HTTPresponse += lightStatus;
-    webServer.send( 200, "text/plain", HTTPresponse );
+    webServer.send( 200, FPSTR( textplainHEADER ), HTTPresponse );
   });
 
   webServer.on( "/api/hostname", []() {

//holds the current upload
File fsUploadFile;

void setupWebServer() {

  ////////////////////////////////////////////////////////////////////////////////////
  //the web interface pages alphabetically

  //handle the index page
  if ( SPIFFS.exists( "/index.htm" ) ) {
    webServer.serveStatic( "/", SPIFFS, "/index.htm" );
    webServer.serveStatic( "/index.htm", SPIFFS, "/index.htm" );
  } else {
    webServer.on( "/", []() {
      webServer.send( 200, "text/plain", "No index.htm present during boot.\nUpload index.htm and reset controller" );
    });
  }

  //handle the filemanager
  if ( SPIFFS.exists( "/filemanager.htm" ) ) {
    webServer.serveStatic( "/filemanager", SPIFFS, "/filemanager.htm" );
    webServer.serveStatic( "/filemanager.htm", SPIFFS, "/filemanager.htm" );
  } else {
    webServer.on( "/filemanager", []() {
      webServer.send( 200, "text/plain", "No filemanager present during boot.\nUpload index.htm and reset controller" );
    });
  }

  //handle the timer editor
  webServer.on( "/editor", []() {
    webServer.send( 200, "text/html", "editor" );
  });

  //handle the file editor


  //handle the setup page
  webServer.on( "/setup", []() {
    webServer.send( 200, FPSTR( texthtmlHEADER ), F( "setup page" ) );
  });

  /////////////////////////////////////////////////////////////////////////////////////
