script for dumping data