fix for logging