dump: extract as a method