make each tcp call in a thread