updated stop script