set up base template