Changed server so it uses the protocoll class