add a rewrite filter