removed pref from list of file types and fixed FOREACH bug, now some preferences...