add type field to import