add getDevicesList function