splited nodeinit to separate nodeinit and procinit.