a bit of cleanup and good practices for the batch jobs chapter