Utils for tor