remove the internal function that because flattenPkgDesc()