allow presence events to be handled before the