fixed issues with ssl client