updated NMT state machine & nodeguard handling