- terminate flag added