os windows support and minor bugfixes