use https instead of http if tor not available