fixed exceptions thrown when no datafile was specified