rpc protocol with json (tcp) implemented