fixed prefs usage and update carbon data