rewrite plugins