added scan and attack behaviours