simplify template handler spec