improved error bytes counter