added middleware
0.0.6