client connections loop