improved dumpdatatap, could replace loaddatatap