added freemarker-macros hook