moved modify_device to plugins