remove flush rewrite