remove redundant method and simplify the config example