added retry for failed process