pass script file location down to enable better error logging