change validateSetting to normalizeSetting