ensure worker server is thread safe