update config main