added middleware that is no longer bundled with express