switched rewrite on