add AppPrefs class