scripts to end