add date to basic template and add some basic error handling on setup