local copy of script