rewrite Config