added flag to get all nodes from getNodeList