changed get_config() to tree_config(), and changed it to static