fix for batchjobs