moving task manager handling into reporter.js