some changes in batch_plotting (crash corrected)