lots of tweaks towards more robust handling of friends presences