changed config -> tree_config to avoid method name clashing