fixed problem with ssl