if no outputfile defined output to stdout