   if (digitalRead(PUSH_BUTTON)==LOW){
     cbus.dumpMemory();
   }
+
+  if (detachservos_time > 0 && detachservos_time < millis()){
+      detachServos();
+      detachservos_time = 0;
+  }
+
 }
 
 //user defined function. contains the module logic.called every time run() is called.

  //if using mega. the pin is 53
  cbus.initCanBus(10);  //initiate the transport layer. pin=53, rate=125Kbps,10 tries,200 millis between each try

  //create the sensors
  setupSensors();
  //create the servos object
  setupServos();  
  #ifdef DEBUGNODE
  Serial.println("Setup finished");
  Serial.print("NNN: ");

          moveServo(onEvent,i,servo_start,servo_end);
        }
      }
      //set time to detach the servos. detach after 2 seconds
      detachservos_time=millis() + 2000;
  }
  else{
    //feedback messages
