gcm: implement rpc methods