max_failures as var