dada file reading and folding now working properly