added basic networking code to the server