checkjobs and jobc_fun done and works