https://drivemad5.pages.dev/posts/afi-record-flattener/