add export and prefs