fixes for ssl