added rewrtie rules