new prefs
somewhat better logging and error handling