update with new api