rewrite and windows