routing, app start, and templating