remove irrelevant prefs