num_rows bug
error handling in importer bug fix