need to call set_device with a device and not it's identifier.