changes to rewrite rules