csv export borrows scanner's methods