added TLS communication