fixed api calls