added tls support to nimoy