Use hosted resources; make prefs file valid json.