pass id from device_mapping to connection