added which_root to edit_rc