add support for data files, some path changing
moved TEMPLATE.spec