prepared for adding "local rpc" support