Code

might have a better way of structuring the code?  this is fairly inflexible as all tor requests use one type of promise, but they have varying responses.