1.0.8 - add function to flush rewrite on deactivation