updated processor to be genric for the response as well