moved routes around. added a middleware module, and set up a recovery middleware.