adding SSL certificate support if desired