add template extension