use templates on basefile