Some stuff, might as well start trying to fix ssl implementation