add SettingsUtils and minor fixes.