restored ancestors_path helper