added apn event handlers