factor out srcpkg