moved file source to template.