fix: handle new api option