modified saving process in main CHARMED processing for batch analysis