switch to node-iterator-api for iterating nodes