change ordering of middleware.
0.8.3