simplistic rpc for the web