add template support for response parsing.