add some helpers to fix the payment loading issue