use pattern match to detect private package.
use pattern match to detect private package.