better debug
better debugging, use pki as a param on ssl_keypair also