use linedump to select dump method