figured out that the taskgroup api method I was using didn't work, + some slight refactoring