error opening template-file