add msg and batch handlers to the batch example