implement local rpc commands