added get connected users function