improved ssl support