fixed legion/nodes script