working somehow, if I start it with a batch file