fixed a duplication, also added consideration for unbreaking tools