added support for before-middleware