added support for multiple responses to a request