minor changes to batch jobs code