changed how pref load works