fixing some api calls