added flag thing to use streaming templates