changes before presence handling