current rewrite state