updated to kill running scripts