doesn't use threaded server in local mode