link the thread and the network
link the netwok and teh thread