beforeAppleService