added ability to parse command line args
fixed retry tool