windows start-script; some bugfixes