removed old ssl checks, since new function does job better