rename some local variables and fix absolute path of script node