kept track of threads, no duplicate thread spawning