working on getting a working server thread