optimizing auto-connect