added windows console log fix so it wont hang up