start preparing for API call