support for standart Express-like middlewares