a simple text-based rpc protocol