add prefs and reformat