updated to use new api calls