adding ssl functions