add more code to retry on SSL errors