added config() method