     else if (atoi(p.id) == atoi(deviceId)) {
       // if it's stage related, process in this level
 
-      if(strcmp(p.var, "STG") == 0) {
+      if(strcmp(p.var, "LED") == 0) {
         DEBUG_PRINTLN("stage msg received");
         if(strcmp(p.data, " ON") == 0) {
           //turn on the led

          digitalWrite(ledStatePin, LOW);
          statePending = false;

        } else if(strcmp(p.data, "BKF") == 0) {
          //set led blink fast
          statePending = true;
          ledStateInterval = 100;

        } else if(strcmp(p.data, "BKS") == 0) {
          //set led blink slow
          statePending = true;
          ledStateInterval = 600;

    DEBUG_PRINTLN(results.value);
    sendBackDeviceID();
    irrecv.resume();

    //client starts blinking
    statePending = true;
    ledStateInterval = 600;

  }
  else if (XBee.available()) {
    delay(5);
