stop script on redirect