add support for blocking threaded server