renamed ClientThread to ServerThread