add retest functionality