tweaks to preview output on windows