exports with output file