added template response to avoid using unnecessary buffer in Writer