feature: configure where the middleware is inserted in the stack
bumped to 0.0.6