add preliminary support for autoattack