fixing up logging w/ thready and num_threads