to update config