testing certs
protocol fix and TODO
semi working tls