fixed some file pref issues