error checking in data import