add thread ID, for easier debugging in multithreaded environments