simple implementation of server with first serialization of protobuf