refactor settings_spec
Settings.ai fix
Settings.for