fixed API calls