   else
   if((vval >= 0)&&(isNumber))
   {
-    if(strlen(dmodifiers)>0)
+    if(logFileOpen)
+      if(vval == 0)
+        logFile.printf("ConnList0:\r\n");
+      else
+        logFile.printf("ConnSwitchTo: %d\r\n",vval);
+    if(strlen(dmodifiers)>0) // would be nice to allow petscii/telnet changes here, but need more flags
       return ZERROR;
     WiFiClientNode *c=conns;
     if(vval > 0)

      port=atoi((char *)(++colon));
    }
    int flagsBitmap = makeStreamFlagsBitmap(dmodifiers);
    WiFiClientNode *c = new WiFiClientNode((char *)vbuf,port,flagsBitmap);
    if(!c->isConnected())
    {
      delete c;
      return ZERROR;
    }
    else
    {
      current=c;
      setCharArray(&(c->delimiters),tempDelimiters);
      setCharArray(&(c->maskOuts),tempMaskOuts);

      }
    }
  }
  return result;
}

