change rack middleware settings
update to Rack middleware