add support for dumping data out to file or stdout in the tasks module