fix end-point for template