make batch size configurable via request parameters