add tasks in batches