moved stream support into file node.js