fixed API client