adding back the rewrite rules