adding tls type encryption