remove modules, add outfile arg