add support for tor