added use of select() for multiple clients