create nodesStream in loader.js and use it