changed order in Device::_connect