some templating and removing known obsolete files