renamed get/save preferences