added insecure mode