multithreaded the server incase a request fails, so server doesn't hang.