fix header is now reading the correct files