added retry-file command line option