adds SSL support