added basic template extension