wiring in templates