use alternative constructor in API calls