newer version of middleware