extend sample to show off autoLogin via new scripting feature