add custom config method