worked on  handling 32bit pkgs correctly. not finished.