saving device list and sending commands