properly replace the legacy package.