fixes for pkgs.