added retry command line option