add -f, --file param, output file name
avoid -r -n -t from being supplied twice