added some variables and bound them to the preference file