added an instance dumping utility