add rewrites