small class to accumulate errors