added monkey-patch for dragonfly