fixed some api calls