added batch submission, buildgrid fixes