minor changes to dump scripts.