handle device being off in device definition