datafile parsing updated and checked