prepare for IAP