[config] add ability to save changes to the config file