add sword detection plus some error resistance when running records through the detector