updt main config