fixed job script generation