added insecure flag for SSL connection