configured the api to send more than one response when needed