set cancel flag before parsing TS (for sake of sanity)
small update