changed find_node and find_value to accept two args