added clear in initFromSettingsJSON