starting to work
trying to put the server on a thread