more error counting