check-import: improvements and more detailed messages