added session concept for 'stdin, stdout, stderr' in order to support remote ZFSs