adding SSL support