update to reflect new api changes