pieces of code related to tor