updated to API v3