some changes for ssl