RF
added output file name  argument