delete the settings file every time and overwrite it