added interface to template reader