set device to offline when program start