refactor read-only config code to apply everywhere (reload,save,delete)