first check for device status in radius