made local analysis script cancelable