added prettify to batch processing.