parse raw file down to array of packages