introduce running environment; add middleware to display exception details