-- converted an array into a vector to avoid weird edge cases -- fixed bugs with array "backupTargets"