updated some of the api calls