debugging initDevices