improve automatic node creation