minor fixes for logging and threaded test