lookup_nodes fixes