updates for batch processing

probably needs more refining too