documentation: batch, also modify to be namespace object