   server.begin();
   strip.begin();
   strip.show(); // Initialize all pixels to 'off'
-  //register the run command as an API endpoint
-  Spark.function("run", run);
   //register the action variable as a GET parameter
   Spark.variable("action", &action, STRING);
   Spark.variable("tcpstate", &tcpstate, STRING);
-  //retister the parameters variable as a GET parameter
   Spark.variable("parameters", &parameters, STRING);
   Spark.variable("ip", &ip, STRING);
   (String(WiFi.localIP()[0]) + "." + String(WiFi.localIP()[1]) + "." +  String(WiFi.localIP()[2]) + "." +  String(WiFi.localIP()[3])).toCharArray(ip, 64);

char ip[64];
char tcpstate[64];

//program and action names
#define STOP "stop"
#define SHUTDOWN "shutdown"
#define PRESTOP "prestop"
#define RAINBOW "rainbow"
#define ALTERNATE "alternate"
#define BLOCKS "blocks"
#define FADECOLOR "fadeColor"
#define ALLOFF "allOff"
#define SETALL "setAll"
#define LOOPALTERNATE "loopAlternate"
#define LOOPBLOCKS "loopBlocks"
#define LATCHPIXEL "latchPixel"
#define SETPIXEL "setPixel"
#define LATCH "latch"
#define ENDRUN "endrun"
#define SNOW "snow"
#define WEBSOCKET "websocket" //<- finish this
#define SETBRIGHTNESS "setBrightness"
#define USA "usa"
#define FREDDYMAD "freddymad"

String loopRun = FREDDYMAD;
String *loopArgs = new String[20];
String *strArr = new String[20];


    delay(del);
}

int setRGB(String rgb)
{
    String r = rgb.substring(0,3);
