add second command line parameter for output file