add n-ways attack.