add templating to packages...
it seems to make compilation work more reliably
investigate why