fixed issue where templates wouldnt copy files over properly