Migrate to new PackfileView API
Rename $main to $mainline to avoid confusion