add same code as in #55
first draft of streaming template