debug for presencestate