all connected session hook now take uid as param