flush rewrites