add error scan and report (work in progress)