added archiving option to process_submission
added archiving option to process_submission