preliminary threaded server