further work on the batch jobs