export io to global, add users/online API