put new file

accidentally inserted a broken version of script