fixed missing prefs.php require_once to use getPref in line 79