update calls to new api