api calls fixed