check failcount properly