in the middle of a rewrite