changed the web server to be multithreaded