fixed script param creating output file