added a new thread to server