some more tweaks to allow tracking of script file paths