fix addconfigureddevice script