restored dragonfly middleware config