inapp script