rename check_device_state to device_check_state