move templateFiles up the build chaing