use rack middleware instead of WEBrick patch