fix for batch jobs