made the server multithreaded