adding refinement dump routine