added basic rpc