updated to integrate with symfony response object for header output