rewrite config framework