finally got templating working properly