added pref file to display query