wait to connect until after user enters password, fix scope style