public void setDeviceEnabled(String devname, boolean b) {
		// not yet initialized. we will be called again later anyway
		if (port == 0)
			return;
		
		if (b == true) {
			synchronized (enabledDevices) {
				Iterator<String> it = enabledDevices.iterator();
				while (it.hasNext()) {
					if (it.next().equals(devname))
						return;
					
				}
				
				// item not in list
				enabledDevices.add(devname);
				deviceNowEnabled (devname);
			}
		} else if (b == false) {
			synchronized (enabledDevices) {
				Iterator<String> it = enabledDevices.iterator();
				while (it.hasNext()) {
					if (it.next().equals(devname)) {
						it.remove();
					
						deviceNowDisabled (devname);
					}
					
				}
				
			}
		}
	}