added ability to specify passive output file