stats: using common task running infrastructure
refactor: task running