make batch size configurable via request parameter