consolidate code keep orig name in tag when flagging to terminate