updated NMT machine & nodeguarding function