update to work with current packages file format