reorg btree
added pkgid