refactor out connected and disconnected_users