add error counting