Plugin rewrite