extract and csv import