save the config file