fix for API calls