added retry sleep