add template support and more filters