add serial and max_fail