added openssl support