BUG: correct the outfile args