changed auth pref to mainpref