working on threaded server