tweaked thrash script