   } else {
     theme = false;
   }
- 
+
+  int startup_switch = digitalRead(STARTUP_SWITCH);
+  int safety_switch = digitalRead(SAFETY_SWITCH);
+  int fire_button = digitalRead(FIRE_BUTTON);
+  
   // while the startup switch is set on
   if (startup_switch == 1) {   
     // in general we always try to play the idle sound if started

      poweredDown = false;
      shuttingDown = false;
      powerSequenceOne(currentMillis, pwr_interval, cyc_interval, cyc_fade_interval);
      flashWandLED(0, currentMillis, wandFlashInterval);    // set top light white blinking
      setWandLightState(1, 2);    // set back light orange
      setWandLightState(3, 0);    //set sloblow red
    } else {
      powerSequenceBoot(currentMillis);
    }

    } else {
      // if the safety is switched off play the click track
      if (safety == true) {
        setWandLightState(2, 4, 0);    //set body off
        safety = false;
        playTrack(clickTrack);
      }
