optimizing auto-connect sequence