bug fix and changed default URI and TLS settings