adding back the templates file

and other