extracted a few methods from thor tasks