adding logging for retries