adding logging for windows error