updating to be more idiomatic with middleware
0.4.3