replace tree_setup with reconfig