text file difficult to parse