better support for server threads