update client manager, use map to store connections