some templates and middleware added