template extension support