new config method