replace pkgid with crate_id