checking for prefs file