add methods to get stderr and stdout of a dataset