add support for sharedprefs