removed flush rewrite