correct various warnings and CSV import/export