add support for HTTPS