Export loadPackageData instead of global