only print 10 warnings, not 100000
get node_name lengths dynamically