add config.yaml and filter.yaml, add getToUrl for replace, update cachepolicy and class structure