fixed issues for ssl