Sync with Fritz

Sorry for the monster pull request ... will use branches now.
this is implicit for windows