add more telling error messages for reading datasets