fixed middleware and example
0.4.4