modification ThreadsServer