         JsonObject& json = jsonBuffer.parseObject(buf.get());
         json.printTo(Serial);
         if (json.success()) {
-          Serial.println("\nparsed json");
+          Serial.println(FPSTR(CONFPARSED));
           stassid = String((const char*)json["sta_ssid"]);
           stapass = String((const char*)json["sta_pass"]);
           hasSavedConfig = true;
         } else {
-          Serial.println("failed to load json config");
+          Serial.println(FPSTR(CONFPARSEFAIL));
         }
       }
     } else {
-      Serial.println("No config file");
+      Serial.println(FPSTR(NOCONF));
     }
   } else {
-    Serial.println("failed to mount FS");
-    Serial.println("Reset...");
+    Serial.println(FPSTR(MOUNTFAIL));
+    Serial.println(FPSTR(RESET));
     Serial.println("");
     ESP.reset();
   }

  /* remove saved config and restart if the flash button is pushed */
  attachInterrupt(digitalPinToInterrupt(D3), deleteWifiConfig, CHANGE);

  analogWriteFreq(PWM_FREQ);
  analogWriteRange(1023);

 // Try to load config
 if (SPIFFS.begin()) {
    Serial.println("mounted file system");
    if (SPIFFS.exists(CONFNAME)) {
      //file exists, reading and loading
      Serial.println("reading config file");
      File configFile = SPIFFS.open(CONFNAME, "r");
      if (configFile) {
        Serial.println("opened config file");
        size_t size = configFile.size();
        // Allocate a buffer to store contents of the file.
        std::unique_ptr<char[]> buf(new char[size]);

  } else {
    WiFi.setAutoConnect(true);
    Serial.println("");
    Serial.println(FPSTR(WIFIOK));
    Serial.println(FPSTR(WIFICONF));
    WiFi.printDiag(Serial);
    Serial.print(FPSTR(WIFIIP));
    Serial.println(WiFi.localIP());
  }

  /*
      TODO: Setup the webserver (myServer)
      TODO: Setup the MQTT client
  */
}

