added basic template functionality