commit first stage version of batch handler code