basic template support added