add support for https connections
add support for https connections