adding support for listDevices operation