client connections implementation