added plink, writefile, checkjobstatus