removed spawning of extra threads