added additional Preferences.init method
removing onTaskLoaded method