trying to fix stuff for ssl