scripts to work out process killing