wip. spectacular results, template generation almost done