parsing fix and exclusion of empty and invalid lines