config method