fixed dump script