fix #44 and add iterative attacks