before reflect rewrite