added getSettings() and updateSettings()