some bugfixes and windows startup script