templater.inc still needs work