major changes to how files are parsed in, more memory efficient