updated for batch processing and utility programs