simplify middleware, don't use extended query parsing