tweaks for batch processing