reintroduce global cancel boolean to secure cancellation