Pref file proccessing