added proper support for insecure in 0.6.5 +