take 3 fixing hang on really long scripts and tasks