fixing  scripts/tnp3.lua