added node ID extraction at startup