adding an ssl check