fixing batch job failures