add support for multiple template extensions