handling errors in import process @dahernan @colinbruce