major fixes to dump service routine