allow specification of output file name