improved legion_nodes management