adding ssl support