changed max nodes to 65535.