added RewriteOptions