removed some superfluous stuff from getDevices and KB checking code