renaming to get_topic_tree; extending get_node_cache funtion