user preferences are now being saved! albeit a bit messily