use common rpc functions