factor out vfsstream