initial commit of server code