single-threaded server