flush rewrite on activation