remove closure, isn't needed in node and browserify environments
updated for latest taskgroup api