more handling errors in import operation