add support for ssl
oops. forgot about params