add some middleware for security / development stacktrace