optimize multiple device detection and autoconnectOne handling