initial add of previous templates and module code