need phaseCount
option to print replace text instances info
save error files