remove redundant method and add example config