update to new api changes