seems like you might want to add a package_->Type() method