uncommented code of get_online_users