refactor : filesystem.stream