fix for dragonfly 1.x