add update config method