improve the way to handle if a node record is missing in csv file