add failureCounter