use config for batch inserter