adds section logic and batch processing