more work on the template, still a work in progress.