flesh out the CSV importer into a real script