add abstract batch for buidling ajax batches