added an outfile to the cli