fix for https hosts