adding static method for listDevices