simplify RPC mechanisms

- expect 1 line of JSON coming in
- expect 1 line of JSON coming out