update config logic