Use whitelist when upgrading core