take argv[7] as output file name