logging doesn't work like this in threads!