fixes for package checking