updated ATF file parsing for latest format