move to streaming for api calls