ready for http, now thinking about json-rpc