cleanup settings file