add endflag for hurdle SE