added helper function to dump an aggregate's data