archive the input file