added -o option saves the file as the file name