attempt to allow use of templates just as easily as files