updated NMT State machine and nodeguard handling