fix for logging and windows