adds some basic template functionality