create base template file