CAPE CANAVERAL, Fla. (AP) — The two astronauts stuck at the International Space Station since June welcomed their new ride home with Sunday's arrival of a SpaceX capsule.

SpaceX launched the rescue mission on Saturday with a downsized crew of two astronauts and two empty seats reserved for Butch Wilmore and Suni Williams, who will return next year. The Dragon capsule docked in darkness as the two craft soared 265 miles (426 kilometers) above Botswana.

NASA switched Wilmore and Williams to SpaceX following concerns over the safety of their Boeing Starliner capsule. It was the first Starliner test flight with a crew, and NASA decided the thruster failures and helium leaks that cropped up after liftoff were too serious and poorly understood to risk the test pilots' return. So Starliner returned to Earth empty earlier this month.

The Dragon carrying NASA’s Nick Hague and the Russian Space Agency’s Alexander Gorbunov will remain at the space station until February, turning what should have been a weeklong trip for Wilmore and Williams into a mission lasting more than eight months.

Two NASA astronauts were pulled from the mission to make room for Wilmore and Williams on the return leg.

NASA likes to replace its station crews every six months or so. SpaceX has provided the taxi service since the company’s first astronaut flight in 2020. NASA also hired Boeing for ferry flights after the space shuttles were retired, but flawed software and other Starliner issues led to years of delays and more than $1 billion in repairs.

Starliner inspections are underway at NASA’s Kennedy Space Center, with post-flight reviews of data set to begin this week.

“We’re a long way from saying, ‘Hey, we’re writing off Boeing,’” NASA’s associate administrator Jim Free said at a pre-launch briefing.

The arrival of two fresh astronauts means the four who have been up there since March can now return to Earth in their own SpaceX capsule in just over a week. Their stay was extended a month because of the Starliner turmoil.

Although Saturday's liftoff went well, SpaceX said the rocket's spent upper stage ended up outside its targeted impact zone in the Pacific because of a bad engine firing. The company has halted all Falcon launches until it figures out what went wrong.

___

The Associated Press Health and Science Department receives support from the Howard Hughes Medical Institute’s Science and Educational Media Group. The AP is solely responsible for all content.

SpaceX capsule Dragon approaches the International Space Station, Sunday, Sept. 29, 2024. (NASA via AP)

Credit: AP

icon to expand image

Credit: AP

SpaceX capsule Dragon carries NASA’s Nick Hague and the Russian Space Agency’s Alexander Gorbunov to dock at the International Space Station, Sunday, Sept. 29, 2024. (NASA via AP)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket, with a crew of two astronauts, lifts off from launch pad 40 at the Cape Canaveral Space Force Station Saturday, Sept. 28, 2024, in Cape Canaveral, Fla. (AP Photo/Chris O'Meara)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket with a crew of two lifts off from launch pad 40 at the Cape Canaveral Space Force Station Saturday, Sept. 28, 2024 at Cape Canaveral, Fla. (AP Photo/John Raoux)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket, with a crew of two astronauts, lifts off from launch pad 40 at the Cape Canaveral Space Force Station in Cape Canaveral, Fla., Saturday, Sept. 28, 2024. (AP Photo/Chris O'Meara)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket, with a crew of two astronauts, lifts off from launch pad 40 at the Cape Canaveral Space Force Station in Cape Canaveral, Fla., Saturday, Sept. 28, 2024. (AP Photo/Chris O'Meara)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket with a crew of two lifts off from launch pad 40 at the Cape Canaveral Space Force Station Saturday, Sept. 28, 2024 at Cape Canaveral, Fla. (AP Photo/John Raoux)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket, with a crew of two astronauts, lifts off from launch pad 40 at the Cape Canaveral Space Force Station Saturday, Sept. 28, 2024, in Cape Canaveral, Fla. (AP Photo/Chris O'Meara)

Credit: AP

icon to expand image

Credit: AP

A SpaceX Falcon 9 rocket, with a crew of two astronauts, lifts off from launch pad 40 at the Cape Canaveral Space Force Station Saturday, Sept. 28, 2024, in Cape Canaveral, Fla. (AP Photo/Chris O'Meara)

Credit: AP

icon to expand image

Credit: AP