moved the retry-loop and made it happen for 500s as well as request errors