add new perturb API to ring_vs_z too