update code after mfpak-integration API change