slice and rpc