refactoring, extract vfs file stream
refactoring