changing template names and putting tokens in place