             if (strcmp(toks, "switch") == 0) {
               toks = strtok (NULL, "/");
               if (atoi(toks) > 0) {
-                DBG Serial.println("Setting switch status to HIGH");
+                DBG Serial.println("switch up");
                 digitalWrite(RELAY_PIN, HIGH);
               } 
               else { 
-                DBG Serial.println("Setting switch status to LOW");
+                DBG Serial.println("switch down");
                 digitalWrite(RELAY_PIN, LOW);
               }
               sendContent(request, digitalRead(RELAY_PIN));
               break;
             } 
-          } 
+          }
+          else {
+            File dataFile = SD.open("a.htm");
+            if (dataFile) {
+              while (dataFile.available()) {
+                  request.write(dataFile.read());
+              }
+              dataFile.close();
+            } else {
+              Serial.println(dataFile);
+            }
+          }
           // send a not found response header
-          request.println(CONTENT_404);
+          request.println("HTTP/1.1 404 Not Found\n\n");
           request.println();
           break;
         }
-        request.println(CONTENT_501);
+        request.println("HTTP/1.1 501 Not Implemented\n\n");
         request.println();
         break;
       }


#ifndef NOETH

  // Buffers used for parsing HTTP request lines
  char buffer[STRING_BUFFER_SIZE];

  // Server configuration parameters, energino will listen for
  // incoming requests on this port
  const long SERVER_PORT = 8180;

  // This configuration is used when DHCP fails
  IPAddress IP(172,25,18,219);
  IPAddress MASK(255,255,255,0);
  IPAddress GW(172,25,18,254);
  
  // Not found page
  const char CONTENT_404[] = "HTTP/1.1 404 Not Found\n\n";
  
  // Not implemented page
  const char CONTENT_501[] = "HTTP/1.1 501 Not Implemented\n\n";
  
  // JSON response header and footer
  const char JSON_RESPONSE_BEGIN[] = "HTTP/1.1 200 OK\nContent-Type: application/json\n\n[";

    return;
  }
  // try to connect
  EthernetClient client;    
  int ret = client.connect(settings.host, settings.port);
  if (ret == 1) {
    // build json document
    DBG Serial.print("PUT /v2/feeds/");
    DBG Serial.println(settings.feed);
    // send the HTTP PUT request. 
