support for ssl, enable log debugging and some examples