fix for ssl problem