changes to batch worker