fixed template handler