correct implementation of proxy rotation with tor