     i++;
   }
 
+  if(SERIAL_DEBUG) {
+    Serial.println("dropping connector");
+  }
+
   // give communication a break and drop connector
   delay(10);
   digitalWrite(coil[i-1], LOW);

  // assess energy supply, find shortest disance to source
  shortestDistanceToSource = 99;
  for (int i =0; i<NUM_CONN; i++) if (distanceToSource[i] < shortestDistanceToSource) shortestDistanceToSource = distanceToSource[i];

  // if we have energy, switch (or keep) lamp on, pass it on and check again in some time
  if (shortestDistanceToSource<99) {

  if(SERIAL_DEBUG) {
    Serial.begin(9600);
    Serial.println("setup");
    Serial.print("isSource: ");
    Serial.println(isSource);
  }
}

