fix getsupporteddevice script